﻿<%@ Page Title="注册" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="TeachingAffairsManagementSystem.Register" %>

<%@ Register Src="~/WebControl/AlertBox.ascx" TagPrefix="uc1" TagName="AlertBox" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
    <webopt:bundlereference runat="server" path="~/Content/Form.css"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="col-xs-12 main-content">
        <div class="form-container">
            <div class="header-lined">
                <h1>
                    注册
                </h1>
            </div>

            <uc1:AlertBox runat="server" ID="Alert" />
            <asp:Timer ID="TRedirect" runat="server" OnTick="TRedirect_Tick"></asp:Timer>

            <div class="row">
                <div class="col-sm-12">
                    <div class="form">
                        <div class="form-group">
                            <label>邮箱 &nbsp;&nbsp;</label>
                            <asp:RequiredFieldValidator runat="server" ControlToValidate="TBEmail" SetFocusOnError="True" ForeColor="Red" ErrorMessage="请输入邮箱"></asp:RequiredFieldValidator>
                            <asp:TextBox ID="TBEmail" runat="server" CssClass="form-control" placeholder="请输入邮箱" autofocus="autofocus" TextMode="Email" MaxLength="45"></asp:TextBox>
                        </div>
                        <div class="form-group">
                            <label>用户名 &nbsp;&nbsp;</label>
                            <asp:RequiredFieldValidator runat="server" ErrorMessage="请输入用户名" ForeColor="Red" ControlToValidate="TBName"></asp:RequiredFieldValidator>
                            <asp:TextBox ID="TBUsername" runat="server" CssClass="form-control" placeholder="请输入用户名" MaxLength="45"></asp:TextBox>
                        </div>
                        <div class="form-group">
                            <label>密码 &nbsp;&nbsp;</label>
                            <asp:RequiredFieldValidator runat="server" ErrorMessage="请输入密码" ForeColor="Red" ControlToValidate="TBPassword"></asp:RequiredFieldValidator>
                            <asp:TextBox ID="TBPassword" runat="server" CssClass="form-control" placeholder="请输入密码" TextMode="Password" MaxLength="45"></asp:TextBox>
                        </div>
                        <div class="form-group">
                            <label>姓名 &nbsp;&nbsp;</label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="请输入姓名" ForeColor="Red" ControlToValidate="TBUsername"></asp:RequiredFieldValidator>
                            <asp:TextBox ID="TBName" runat="server" CssClass="form-control" placeholder="请输入姓名" MaxLength="45"></asp:TextBox>
                        </div>
                        <div class="form-group">
                            <label class="radio-inline">
                                <input runat="server" name="Gender" ID="RMale" type="radio" checked/>男
                            </label>
                            <label class="radio-inline">
                                <input runat="server" name="Gender" ID="RFemale" type="radio"/>女
                            </label>
                        </div>
                        <div align="center">
                            <asp:Button ID="BtnRegister" runat="server" Text="注册" CssClass="btn btn-primary" OnClick="BtnRegister_Click"/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
</asp:Content>